import os
from setuptools import setup  # 修复了无法解析的导入问题
from setuptools.extension import Extension
from Cython.Build import cythonize

root_dir = os.path.dirname(os.path.abspath(__file__))

source_files = [
	"his_bsk_saiqi.py",
]

extensions = [
	Extension(
	name=os.path.splitext(file)[0].replace('/','.'),
	sources=[os.path.join(root_dir,file)]
	)
	for file in source_files
]

setup(
	name="his_bsk_saiqi",
	version='0.1',
	ext_modules=cythonize(extensions, language_level=3),
)


#编译命令：python setup.py build_ext --inplace
#python setup.py build_ext --inplace